Rnoc\Retainful\WcFunctions D

Total Complexity 374
Dependencies 6
Dependents 10
Total lines 2,052
Lines of code 1,095
Logical lines of code 583
Comment lines 650
Methods 151
Properties 1

Methods 151

Method Rating Maintainability Complexity Lines of code
getCustomerTotalSpent()
S
59 6 14
canApplyCoupon()
S
59 6 14
getUserRoles()
S
60 6 13
getAppliedDiscounts()
S
52 5 26
getCategoryIdsOfProductInCart()
S
59 5 15
getOrderPlacedDate()
S
59 5 14
applyCouponToOrder()
S
65 5 9
setSessionCookie()
S
69 5 6
getCartSubTotal()
S
63 4 13
getUsedCoupons()
S
62 4 12
getSaleProductIdsInCart()
S
61 4 12
getCartUrl()
S
62 4 11
getOrderUserId()
S
67 4 8
setSession()
S
65 4 9
getSiteDefaultLang()
S
65 4 10
getOrderItemMeta()
S
65 4 9
getOrderId()
S
67 4 8
getProductCategoryName()
S
67 4 7
getCustomerTotalOrders()
S
65 4 9
getCustomerEmail()
S
63 3 12
getSessionCookie()
S
63 3 12
__construct()
S
62 3 11
getCustomerOrdersByEmail()
S
63 3 11
getProductImageSrc()
S
62 3 11
getSession()
S
67 3 8
getUserByEmail()
S
66 3 9
getPHPSession()
S
67 3 9
initWoocommerceSession()
S
73 3 5
removeDiscount()
S
67 3 8
addDiscount()
S
67 3 8
hasDiscount()
S
67 3 8
hasSession()
S
67 3 9
removePHPSession()
S
66 3 9
getOrderDate()
S
64 3 10
removeSession()
S
67 3 8
isCartEmpty()
S
65 3 10
setQuantity()
S
64 3 10
addToCart()
S
63 3 10
setPHPSession()
S
68 3 7
getOrderEmail()
S
67 3 8
startPHPSession()
S
74 3 5
getProductIdsInCart()
S
64 3 10
getPage()
S
66 3 9
isProductInSale()
S
66 3 9
isMethodExists()
S
70 3 6
isValidCoupon()
S
65 3 9
getPriceIncludingTax()
S
69 3 7
getPriceExcludingTax()
S
69 3 7
getShopUrl()
S
71 2 6
getProductName()
S
71 2 6
getCategoryId()
S
71 2 6
getCouponCode()
S
71 2 6
getCheckoutUrl()
S
69 2 7
getDefaultCurrency()
S
72 2 6
getBillingAddressTwo()
S
71 2 6
getProductCategoryIds()
S
71 2 6
getBillingAddressOne()
S
71 2 6
getBillingEmail()
S
71 2 6
getBillingLastName()
S
71 2 6
getOrderCurrency()
S
71 2 6
getBillingFirstName()
S
71 2 6
getProductImage()
S
71 2 6
setOrderMeta()
S
70 2 6
getBillingPostCode()
S
71 2 6
getBillingCity()
S
71 2 6
getOrderTotalTax()
S
71 2 6
getCustomerTotalSpentFromSession()
S
64 2 10
getAvailableOrderStatuses()
S
72 2 6
getCustomerTotalOrdersFromSession()
S
64 2 10
getProduct()
S
72 2 6
getProductImageId()
S
71 2 6
getCartItemPrice()
S
68 2 8
getCartFees()
S
71 2 6
getCartShippingTotal()
S
72 2 6
getCartDiscountTotal()
S
72 2 6
getCartShippingTaxTotal()
S
72 2 6
getCartTaxTotal()
S
72 2 6
getOrderItems()
S
72 2 6
getShippingCompany()
S
71 2 6
getBillingState()
S
71 2 6
getShippingPostCode()
S
71 2 6
getShippingCountry()
S
71 2 6
getShippingState()
S
71 2 6
getShippingCity()
S
71 2 6
getShippingAddressTwo()
S
71 2 6
getShippingAddressFormatted()
S
71 2 6
getShippingAddressOne()
S
71 2 6
getShippingLastName()
S
71 2 6
getShippingFirstName()
S
71 2 6
getBillingPhone()
S
71 2 6
getBillingCompany()
S
71 2 6
getItemName()
S
70 2 6
getBillingCountry()
S
71 2 6
getItemPrice()
S
71 2 6
calculateCartTotals()
S
71 2 6
getItemTitle()
S
71 2 6
getOrderPaymentURL()
S
71 2 6
getOrderItemsTotal()
S
71 2 6
formatPrice()
S
71 2 6
priceDecimals()
S
72 2 6
priceThousandSeparator()
S
72 2 6
priceDecimalSeparator()
S
72 2 6
getOrderUser()
S
71 2 6
getOrderTotal()
S
71 2 6
getOrderLastName()
S
71 2 6
getOrderFirstName()
S
71 2 6
getOrderReceivedURL()
S
71 2 6
isOrderNeedPayment()
S
71 2 6
setCustomerEmail()
S
71 2 6
isOrderPaid()
S
71 2 6
setOrderNote()
S
74 2 5
getOrderFees()
S
71 2 6
getOrderShippingTotal()
S
71 2 6
getOrderDiscount()
S
71 2 6
getItemTaxSubTotal()
S
71 2 6
getItemSubTotal()
S
71 2 6
getProductUrl()
S
71 2 6
getOrderSubTotal()
S
71 2 6
getOrderNumber()
S
71 2 6
getItemSku()
S
71 2 6
getStatus()
S
69 2 7
getCustomerBillingEmail()
S
71 2 6
getCartTotalTax()
S
71 2 6
getItemId()
S
71 2 6
getCartTotal()
S
72 2 6
getSessionCart()
S
68 2 8
getCartTaxes()
S
71 2 6
getCartTotalPrice()
S
72 2 6
getCartTotalDiscount()
S
71 2 6
getCouponDiscountType()
S
71 2 6
getCouponDateExpires()
S
71 2 6
getCouponUsageCount()
S
71 2 6
getAppliedCartCoupons()
S
71 2 6
hasOrderStatus()
S
71 2 6
setOrderStatus()
S
71 2 6
getCartTotalForEdit()
S
71 2 6
getCartHash()
S
71 2 6
getOrder()
S
71 2 6
getAppliedCouponsOfCart()
S
73 2 5
getSessionCustomerId()
S
71 2 6
getOrdersList()
S
72 2 6
setCustomerPayingForOrder()
S
74 2 5
clearWooNotices()
S
75 2 5
emptyUserCart()
S
69 2 7
getCart()
S
71 2 6
getClientSession()
S
63 1 11
deleteOrderMeta()
S
79 1 3
getOrderMeta()
S
75 1 4
isPriceExcludingTax()
S
80 1 3
getPostMeta()
S
79 1 3
removeTotalOrdersAndSpentFromSession()
S
78 1 4